package com.shiguiwu.springmybatis.designpattern.composite.scene.engine;

import com.shiguiwu.springmybatis.designpattern.composite.scene.logic.LogicFilter;
import com.shiguiwu.springmybatis.designpattern.composite.scene.logic.impl.UserAgeFilter;
import com.shiguiwu.springmybatis.designpattern.composite.scene.logic.impl.UserGenderFilter;
import lombok.Data;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @description: 引擎配置
 * @author: stone
 * @date: Created by 2021/8/25 23:19
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.composite.scene.engine
 */
@Data
public class EngineConfig {

     static Map<String, LogicFilter> logicFilterMap;

    static {
        logicFilterMap = new ConcurrentHashMap<>();
        logicFilterMap.put("userAge", new UserAgeFilter());
        logicFilterMap.put("userGender", new UserGenderFilter());
    }


}
